<%@ include file="../../include.jsp" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>

<c:set var="isAuthenticated">false</c:set>
<sec:authorize access="isAuthenticated()">
<c:set var="isAuthenticated">true</c:set>
</sec:authorize>

<c:choose>
   <c:when test="${ isAuthenticated=='false' }">
<tiles:insertAttribute name="anonymousPanel" ignore="true" />
   </c:when>
   <c:otherwise>
<tiles:insertAttribute name="authenticatedPanel" ignore="true" />
   </c:otherwise>
</c:choose>